Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added sankey plot using taxonomy report #96

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

snjlee58
Copy link

@snjlee58 snjlee58 commented Dec 23, 2024

Created SankeyDiagram component and incorporated taxonomy sankey plot to the ResultView.
image
image

// Read the taxonomy report
taxonomyReportPath := filepath.Join(base, "alis_afsp_report")
taxonomyReport, err := ReadTaxonomyReport(taxonomyReportPath)
if err != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not return an empty taxonomy report if the file does not exist?

@@ -320,13 +330,76 @@ func ReadAlignments[T any, U interface{ ~uint32 | ~int64 }](id Id, entries []U,
all = append(all, results)
}
reader.Delete()

// Read the taxonomy report
taxonomyReportPath := filepath.Join(base, "alis_afsp_report")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be "alis_"+db+"_report"

@@ -106,7 +106,9 @@
</v-btn>
</v-btn-toggle>
</v-flex>

<v-flex>
<SankeyDiagram :rawData="hits.results[0].taxonomyreport"></SankeyDiagram>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need a v-if for when hits is still null?

Changes:
- Return empty taxonomy report if file doesn't exist (error)
- Fixed file path for taxonomy report
- Hide sankey when hits is null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants